﻿using System.Text;
using System.Linq;
using System;
using Newtonsoft.Json;
using System.Collections.Generic;
using UtilTools;
using SqlSugarLearing.Model;
using SqlSugar;
using SqlSugarLearing.M_Dto;
using YiTong.Common;

namespace SqlSugarLearing
{
    class Program
    {
        static void Main(string[] args)
        {
            var model = DbHelper.Db.Queryable<CRM_School>().First(it=>it.id == 1);
            System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区
            DateTime dt = startTime.AddMilliseconds(1690819199998);
            model.serviceExpireDate = dt;
            model.userServiceExpireDate = dt;

            DbHelper.Db.Updateable(model).ExecuteCommand();
        }
    }
}